<template>
  <div id="app" :class="isPc ? '' : 'app'">
    <router-view/>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isPc: true
    }
  },
  mounted() {
    this.isPC()
  },
  methods: {
    isPC() {
      const userAgentInfo = navigator.userAgent
      console.log(userAgentInfo)
      const Agents = new Array(
        'Android',
        'iPhone',
        'SymbianOS',
        'Windows Phone',
        'iPad',
        'iPod'
      )
      for (let v = 0; v < Agents.length; v++) {
        if (userAgentInfo.indexOf(Agents[v]) > 0) {
          this.isPc = false
          break
        }
      }
    },
  }
}
</script>


<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
*{
  &::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    // background: rgb(33, 39, 53);
  }
  &::-webkit-scrollbar-track-piece {
    // background-color: rgb(33, 39, 53);
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #ccc;
    // opacity: .8;
  }
}
.app {
  position: fixed;
  width: 218vh;
  height: 100vw;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  background-color: #050f3b;
  transform: scale(0.46) rotate(90deg);
  transform-origin: 17.4% 38.2%; 
}
</style>
